export const isIntact = (list, cols) => {
  let effList = [];
  let status;
  let row = {};
  for (let data of list) {
    status = [];
    row = {
      ID: data.ID
    };
    for (let col of cols) {
      if (!col.hidden) {
        if (!col.isFree && (!col.dataType || col.dataType.indexOf('w-') > -1)) {
          status.push(data[col.col] === 0 || !!data[col.col]);
        }
        row[col.col] = data[col.col];
      }
    }
    if (!status.includes(false)) {
      effList.push(row);
    } else {
      if (!status.includes(true)) {
        // --
      } else {
        return false;
      }
    }
  }
  return effList;
};
